#!/bin/bash

TEMP_FILE=${APP_OUTPUT_DIR}/nodejs_14.x_temp.sh

curl --silent --location https://rpm.nodesource.com/setup_14.x  >> ${TEMP_FILE}
chmod 777 ${TEMP_FILE}
${TEMP_FILE} >> ${YUM_LOG_FILE}
yum -y install nodejs >> ${YUM_LOG_FILE}
rm -rf ${TEMP_FILE}